import Layout from '@/layout'
const meta = { auth: true }
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)

export default {
  path: '/components',
  component: Layout,
  name: 'components',
  meta,
  redirect: { name: 'components-iframe-in' },
  children: (pre => [
    {
      path: 'iframe/in',
      name: `${pre}iframe-in`,
      component: _import('modules/components/iframe/index.vue'),
      meta: { ...meta, title: '内嵌网页' },
      
    },
    {
      path: 'iframe/html',
      name: `${pre}iframe-html`,
      component: _import('modules/components/iframe/html.vue'),
      meta: { ...meta, title: '本地网页' },
      
    },
    {
      path: 'icon',
      component: _import('modules/components/icon/index.vue'),
      name: `${pre}icon`,
      meta: { ...meta, title: 'icon' }
    },
    {
      path: 'message',
      component: _import('modules/components/message/index.vue'),
      name: `${pre}message`,
      meta: { ...meta, title: 'message' }
    },
  ]
  )('components-')
}
